﻿namespace ExamV5.ManagSys
{
    using System;
    using System.Configuration;
    using System.Management;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;

    public class FrmVersion : Page
    {
        protected HtmlForm Form1;
        protected HtmlHead Head1;
        protected Label labTip;
        protected TextBox txtNumber;

        protected void Page_Load(object sender, EventArgs e)
        {
            this.Page.Title = ConfigurationManager.ConnectionStrings["ProTitle"].ConnectionString + "--读取软件编号";
            string str = "";
            //ManagementClass class2 = new ManagementClass("Win32_NetworkAdapterConfiguration");
            //foreach (ManagementObject obj2 in class2.GetInstances())
            //{
            //    if ((bool) obj2["IPEnabled"])
            //    {
            //        string[] strArray = obj2["MacAddress"].ToString().Split(new char[] { ':' });
            //        for (int i = 0; i < strArray.Length; i++)
            //        {
            //            str = str + strArray[i].ToString();
            //        }
            //        str = str.Replace("A", "101").Replace("B", "111").Replace("C", "121").Replace("D", "131").Replace("E", "141").Replace("F", "151");
            //        this.txtNumber.Text = str;
            //    }
            //}
        }
    }
}

